package com.example.springbootdemo.controller;

import com.example.springbootdemo.service.RocketMQHandelService;
import com.example.springbootdemo.service.RocketService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName: RocketMQController
 * @Description:
 * @Author: TXW
 * @Date: 2025/7/22
 */

@RequestMapping("rocketMQ")
@RestController
public class RocketMQController {

    @Resource
    private RocketService rocketService;

    @GetMapping("send")
    public String send() throws Exception{
        rocketService.sendNormalmsg();
        return "发送成功";
    }
}
